package com.aggregate.pay.yufu.cpos.support.client;

import java.util.HashMap;
import java.util.Map;

import com.aggregate.pay.yufu.cpos.bean.QueryMerchantData;
import com.aggregate.pay.yufu.cpos.bean.QueryMerchantResult;
import com.aggregate.pay.yufu.cpos.support.AbstractClient;
import com.aggregate.pay.yufu.cpos.support.Factory;

/**
 * 商户查询
 * @author Moyq5
 * @date 2017年9月6日
 */
public class QueryMerchant extends AbstractClient<QueryMerchantData, QueryMerchantResult> {

	@Override
	protected String getServerPath() {
		return Factory.getConfig().getServerPath() + "QueryMerchantAndPayAction.json";
	}

	@Override
	protected Class<QueryMerchantResult> getResultClass() {
		return QueryMerchantResult.class;
	}

	@Override
	protected Map<String, Object> convertToMap(QueryMerchantData data) {
		
		Map<String, Object> params = new HashMap<String, Object>();
		
        //请求参数start
		params.put("customerId", data.getCustomerId());
		//请求参数end
		
		return params;
		
	}

}
